package com.guanghua.brick.security;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

public class DefaultPermission implements IPermission {

	public boolean functionPermissionValid(String function, HttpServletRequest request) {
		return false;
	}

	public boolean functionPermissionValid(String function, IAuthenticated user) {
		return false;
	}

	public String contentPermissionFilter(String function, HttpServletRequest request, String propertyName) {
		return " and 2 = 1";
	}

	public String contentPermissionFilter(String function, IAuthenticated user, String propertyName) {
		return " and 2 = 1";
	}

	public List contentPermissionFilter(String function, HttpServletRequest request) {
		return new ArrayList();
	}

	public List contentPermissionFilter(String function, IAuthenticated user) {
		return new ArrayList();
	}

	public String getFunctionName(String functionId) {
		return "function1";
	}


}
